#ifndef __ADV7611_H__
#define __ADV7611_H__

/*
 *	I2C Address.
 */
#define ADV7611__I2C		0x98
//#define ADV7611__I2C		0x9A

/*
 *	I2C Map Address
 */
#define IO___MAP_I2C		0x98	/* same of the ADV7611__I2C */
#define CEC__MAP_I2C		0x80
#define INFO_MAP_I2C		0x7c
#define DPLL_MAP_I2C		0x4c
#define KSV__MAP_I2C		0x64
#define EDID_MAP_I2C		0x6c
#define HDMI_MAP_I2C		0x68
#define CP___MAP_I2C		0x44




typedef struct device_operation
{
	unsigned char addr;
	unsigned char reg;
	unsigned char value;
}device_operation;


/*
 * ioctl cmd
 */
#define ADV7611_IOC_MAGIC		'v'

#define ADV7611_GET_ALL_REG			_IO(ADV7611_IOC_MAGIC, 1)
#define ADV7611_GET_SINGLE_REG		_IOWR(ADV7611_IOC_MAGIC, 2, struct device_operation)
#define ADV7611_SET_SINGLE_REG		_IOWR(ADV7611_IOC_MAGIC, 3, struct device_operation)



#endif	/* __ADV7611_H__ */

